<%--
  Created by IntelliJ IDEA.
  User: MSI-PC
  Date: 2021/12/22
  Time: 23:23
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>

    <!-- 引入Bootstrap3.3.0 -->
    <link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.0/css/bootstrap.min.css">

    <!-- 引入layui css -->
    <link rel="stylesheet" type="text/css" href="https://www.layuicdn.com/layui/css/layui.css" />

    <!-- 引入本地css文件 -->
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/student.css">

    <!-- 引入jquery -->
    <script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>

    <!-- 引入bootstrap.js -->
    <script src="http://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>

    <!-- 引入 layui.js -->
    <script src="https://cdnjs.cloudflare.com/ajax/libs/layui/2.6.8/layui.min.js"></script>

    <meta charset="utf-8">
    <title>学生首页</title>
</head>
<body>
<div class="container">

<div class="toolbar">
    <ul class="layui-nav" lay-filter="">
        <img src="${pageContext.request.contextPath}/static/img/logo_green.png" class="logo" />
        <li id="index" class="layui-nav-item"><a href="${pageContext.request.contextPath}/studentIndex">首页</a></li>
        <li id="grade" class="layui-nav-item"><a href="${pageContext.request.contextPath}/student/grade">成绩查询</a></li>
        <li id="classes" class="layui-nav-item"><a href="${pageContext.request.contextPath}/student/selectCourse">选课</a></li>
        <li id="mine_class" class="layui-nav-item"><a href="${pageContext.request.contextPath}/student/mineCourse">已选课程</a></li>
        <li id="homework" class="layui-nav-item layui-this"><a href="${pageContext.request.contextPath}/student/allHomework">作业</a></li>

        <li class="toolbar_right"><a href="#">退出登录</a></li>
        <li class="toolbar_right">欢迎你！<span>${userId}</span> |</li>


    </ul>
</div>
<div class="item_content">
<div class="col-md-12 tab_container_class">
    <div class="tab_left_top_text" style="display: inline-block;">
        <p>作业提交</p>
    </div>
</div>

<div class="col-md-12 tab_form">

    <label class="submit_label">作业名：</label>
    <p class="submit_title">${title}</p>

    <form class="layui-form" action="${pageContext.request.contextPath}/student/homeworkSubmit?homeworkId=${num}" method="post">
        <div class="layui-form-item layui-form-text">
            <div class="layui-input-block">
                <textarea name="desc" placeholder="请输入作业内容" class="layui-textarea">${detail}</textarea>
            </div>
        </div>
        <input name="homeworkId" type="hidden" value="${num}">
        <input name="userId" type="hidden" value="${userId}">
        <div class="layui-form-item">
            <div class="layui-input-block text-center">
                <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
            </div>
        </div>

    </form>

</div>
</div>
</div>
<%--<script type="text/javascript">--%>
<%--    history.go(1)--%>
<%--</script>--%>
</body>
</html>
